package com.dhcc.bpm.modules.safe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.safe.entity.GatewayControl;
import com.dhcc.bpm.modules.safe.vo.GatewayControlVO;

import java.util.List;

/**
 * @ClassName GatewayControlMapper
 * @Description  网关访问控制表 Mapper 接口
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface GatewayControlMapper extends BaseMapper<GatewayControl> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param gatewayControl
	 * @return
	 */
	List<GatewayControlVO> selectGatewayControlPage(IPage page, GatewayControlVO gatewayControl);
	/**
	 * 更新状态
	 * @param gatewayControl
	 * @return
	 */
	int updateRefreshFlag(GatewayControl gatewayControl);
}
